package test.threads.queue.unstressed;

/**
 * @author cheremin
 * @since 21.09.11,  14:54
 */
public interface IQueue<T> {
    public void enqueue( final T item ) throws InterruptedException;

    public T dequeue() throws InterruptedException;

    /**
     * @return elements count currently in queue
     */
    public int size();
}
